package com.wangshen.base.net.bean;

import android.text.TextUtils;

public class ImageEntity implements ExBaseEntity {

    /**
     * msg : 操作成功
     * fileName : /profile/upload/2023/11/17/IMG_CMP_236967585_20231117213047A005.jpeg
     * code : 200
     * newFileName : IMG_CMP_236967585_20231117213047A005.jpeg
     * url : http://106.15.78.187:5050/profile/upload/2023/11/17/IMG_CMP_236967585_20231117213047A005.jpeg
     * originalFilename : IMG_CMP_236967585.jpeg
     */

    private String msg;
    private String fileName;
    private String code;
    private String newFileName;
    private String url;
    private String originalFilename;

    @Override
    public boolean isSuccessful() {
        return TextUtils.equals("200", code);
    }

    @Override
    public String getMessage() {
        return msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public boolean isExpireLogin() {
        return TextUtils.equals(BaseExpireLoginCode.CODE_APP, code);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }


    public String getNewFileName() {
        return newFileName;
    }

    public void setNewFileName(String newFileName) {
        this.newFileName = newFileName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }
}
